import request from '@/utils/request'

// 查询采购入库列表
export function listBuyinhou(query) {
  return request({
    url: '/mes/buyinhou/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库详细
export function getBuyinhou(id) {
  return request({
    url: '/mes/buyinhou/' + id,
    method: 'get'
  })
}

// 新增采购入库
export function addBuyinhou(data) {
  return request({
    url: '/mes/buyinhou',
    method: 'post',
    data: data
  })
}

// 修改采购入库
export function updateBuyinhou(data) {
  return request({
    url: '/mes/buyinhou',
    method: 'put',
    data: data
  })
}

// 删除采购入库
export function delBuyinhou(id) {
  return request({
    url: '/mes/buyinhou/' + id,
    method: 'delete'
  })
}
// 入库
export function inHou(query) {
  return request({
    url: '/mes/buyinhou/inHou',
    method: 'post',
    data:query
  })
}
